<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@	taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message code="text_newactivity" text="Create Activity" /></title>
</head>
<body>
	<div class="row-fluid">
		<div class="offset3 span5">
			<form id="createActivityForm" class="form-horizontal"
				action="<%=request.getContextPath()%>/pages/newActivity" method="POST">
				<div class="control-group <c:if test='${!empty name_form_error}'>error</c:if>">
					<label class="control-label" for="inputName"> <spring:message
							code="text_activityname" text="Activity Name" />
					</label>
					<div class="controls">
						<input type="text" id="inputName" name="name" value="${newActivity.name}"
							placeholder="<spring:message code="text_activityname" text="Activity Name" />">
						<span class="help-block validation-failed"> 
							<c:if test='${!empty name_form_error}'>
								<c:out value="${name_form_error}" />
							</c:if>
						</span>
					</div>
				</div>
				<div class="control-group <c:if test='${!empty desc_form_error}'>error</c:if>">
					<label class="control-label" for="inputDesc"> 
						<spring:message code="text_activitydesc" text="Description" />
					</label>
					<div class="controls">
						<input type="text" id="inputDesc" name="desc" value="${newActivity.desc}"
							placeholder="<spring:message code="text_activitydesc" text="Description" />">
						<span class="help-block validation-failed"> 
							<c:if test='${!empty desc_form_error}'>
								<c:out value="${desc_form_error}"/>
							</c:if>
						</span>
					</div>
				</div>
				<div class="control-group <c:if test='${!empty estimation_form_error}'>error</c:if>">
					<label class="control-label" for="inputEstimation"> 
						<spring:message code="text_activityestimation" text="Estimation" />
					</label>
					<div class="controls">
						<input type="text" id="inputDesc" name="desc" value="${newActivity.estimation}"
							placeholder="<spring:message code="text_activityestimation" text="Estimation" />">
						<span class="help-block validation-failed"> 
							<c:if test='${!empty estimation_form_error}'>
								<c:out value="${estimation_form_error}" />
							</c:if>
						</span>
					</div>
				</div>
				<div class="container-fluid">
					<button class="btn btn-success pull-right" type="submit">
						<spring:message code="text_newactivity" text="Create Activity" />
					</button>
				</div>
			</form>
		</div>
	</div>
</body>
</html>